.class Lcom/xiaomi/notes/NoteListActivity$8;
.super Ljava/lang/Object;
.source "NoteListActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/xiaomi/notes/NoteListActivity;->initListener()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/xiaomi/notes/NoteListActivity;


# direct methods
.method constructor <init>(Lcom/xiaomi/notes/NoteListActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 618
    iput-object p1, p0, Lcom/xiaomi/notes/NoteListActivity$8;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 3
    .parameter "v"

    .prologue
    .line 622
    iget-object v0, p0, Lcom/xiaomi/notes/NoteListActivity$8;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-static {v0}, Lcom/xiaomi/notes/NoteListActivity;->access$1300(Lcom/xiaomi/notes/NoteListActivity;)Landroid/widget/EditText;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_0

    .line 623
    iget-object v0, p0, Lcom/xiaomi/notes/NoteListActivity$8;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-static {v0}, Lcom/xiaomi/notes/NoteListActivity;->access$1000(Lcom/xiaomi/notes/NoteListActivity;)I

    move-result v0

    packed-switch v0, :pswitch_data_0

    .line 632
    :goto_0
    :pswitch_0
    iget-object v0, p0, Lcom/xiaomi/notes/NoteListActivity$8;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-static {v0}, Lcom/xiaomi/notes/NoteListActivity;->access$1300(Lcom/xiaomi/notes/NoteListActivity;)Landroid/widget/EditText;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 633
    iget-object v0, p0, Lcom/xiaomi/notes/NoteListActivity$8;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    iget-object v1, p0, Lcom/xiaomi/notes/NoteListActivity$8;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-static {v1}, Lcom/xiaomi/notes/NoteListActivity;->access$1000(Lcom/xiaomi/notes/NoteListActivity;)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/xiaomi/notes/NoteListActivity;->setState(I)V

    .line 634
    iget-object v0, p0, Lcom/xiaomi/notes/NoteListActivity$8;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-static {v0}, Lcom/xiaomi/notes/NoteListActivity;->access$1400(Lcom/xiaomi/notes/NoteListActivity;)V

    .line 636
    :cond_0
    return-void

    .line 625
    :pswitch_1
    iget-object v0, p0, Lcom/xiaomi/notes/NoteListActivity$8;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-static {v0}, Lcom/xiaomi/notes/NoteListActivity;->access$800(Lcom/xiaomi/notes/NoteListActivity;)Lcom/xiaomi/notes/DBOperate;

    move-result-object v0

    iget-object v1, p0, Lcom/xiaomi/notes/NoteListActivity$8;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-static {v1}, Lcom/xiaomi/notes/NoteListActivity;->access$1300(Lcom/xiaomi/notes/NoteListActivity;)Landroid/widget/EditText;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/xiaomi/notes/DBOperate;->insertFolder(Ljava/lang/String;)J

    goto :goto_0

    .line 628
    :pswitch_2
    iget-object v0, p0, Lcom/xiaomi/notes/NoteListActivity$8;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-static {v0}, Lcom/xiaomi/notes/NoteListActivity;->access$800(Lcom/xiaomi/notes/NoteListActivity;)Lcom/xiaomi/notes/DBOperate;

    move-result-object v0

    iget-object v1, p0, Lcom/xiaomi/notes/NoteListActivity$8;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-static {v1}, Lcom/xiaomi/notes/NoteListActivity;->access$100(Lcom/xiaomi/notes/NoteListActivity;)I

    move-result v1

    iget-object v2, p0, Lcom/xiaomi/notes/NoteListActivity$8;->this$0:Lcom/xiaomi/notes/NoteListActivity;

    invoke-static {v2}, Lcom/xiaomi/notes/NoteListActivity;->access$1300(Lcom/xiaomi/notes/NoteListActivity;)Landroid/widget/EditText;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/xiaomi/notes/DBOperate;->updateFolder(ILjava/lang/String;)V

    goto :goto_0

    .line 623
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_0
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method
